<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="svn.resources.html">« 资源类型</a></li>
      <li style="float: right;"><a href="ref.svn.html">SVN 函数 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.svn.html">SVN</a></li>
    <li>预定义常量</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="svn.constants" class="appendix">
 <h1>预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
 <dl>
  
   <dt id="constant.svn-revision-head">
    <strong><code>SVN_REVISION_HEAD</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Magic number (-1) specifying the HEAD revision
    </span>
   </dd>

  
 </dl>

 <dl id="svn.constants.auth">
  <strong class="title">Constants usable with <span class="function"><a href="function.svn-auth-set-parameter.html" class="function">svn_auth_set_parameter()</a></span></strong>
  
   <dt id="constant.svn-auth-param-default-username">
    <strong><code>SVN_AUTH_PARAM_DEFAULT_USERNAME</code></strong> 
    (<span class="type">string</span>)
   </dt>

   <dd>

    <span class="simpara">
     Property for default username to use when performing basic authentication
    </span>
   </dd>

  
  
   <dt id="constant.svn-auth-param-default-password">
    <strong><code>SVN_AUTH_PARAM_DEFAULT_PASSWORD</code></strong> 
    (<span class="type">string</span>)
   </dt>

   <dd>

    <span class="simpara">
     Property for default password to use when performing basic authentication
    </span>
   </dd>

  
  
   <dt id="constant.svn-auth-param-non-interactive">
    <strong><code>SVN_AUTH_PARAM_NON_INTERACTIVE</code></strong> 
    (<span class="type">string</span>)
   </dt>

   <dd>
<span class="simpara"/></dd>

  
  
   <dt id="constant.svn-auth-param-dont-store-passwords">
    <strong><code>SVN_AUTH_PARAM_DONT_STORE_PASSWORDS</code></strong> 
    (<span class="type">string</span>)
   </dt>

   <dd>
<span class="simpara"/></dd>

  
  
   <dt id="constant.svn-auth-param-no-auth-cache">
    <strong><code>SVN_AUTH_PARAM_NO_AUTH_CACHE</code></strong> 
    (<span class="type">string</span>)
   </dt>

   <dd>
<span class="simpara"/></dd>

  
  
   <dt id="constant.svn-auth-param-ssl-server-failures">
    <strong><code>SVN_AUTH_PARAM_SSL_SERVER_FAILURES</code></strong> 
    (<span class="type">string</span>)
   </dt>

   <dd>
<span class="simpara"/></dd>

  
  
   <dt id="constant.svn-auth-param-ssl-server-cert-info">
    <strong><code>SVN_AUTH_PARAM_SSL_SERVER_CERT_INFO</code></strong> 
    (<span class="type">string</span>)
   </dt>

   <dd>
<span class="simpara"/></dd>

  
  
   <dt id="constant.svn-auth-param-config">
    <strong><code>SVN_AUTH_PARAM_CONFIG</code></strong> 
    (<span class="type">string</span>)
   </dt>

   <dd>
<span class="simpara"/></dd>

  
  
   <dt id="constant.svn-auth-param-server-group">
    <strong><code>SVN_AUTH_PARAM_SERVER_GROUP</code></strong> 
    (<span class="type">string</span>)
   </dt>

   <dd>
<span class="simpara"/></dd>

  
  
   <dt id="constant.svn-auth-param-config-dir">
    <strong><code>SVN_AUTH_PARAM_CONFIG_DIR</code></strong> 
    (<span class="type">string</span>)
   </dt>

   <dd>
<span class="simpara"/></dd>

  
  
   <dt id="constant.php-svn-auth-param-ignore-ssl-verify-errors">
    <strong><code>PHP_SVN_AUTH_PARAM_IGNORE_SSL_VERIFY_ERRORS</code></strong> 
    (<span class="type">string</span>)
   </dt>

   <dd>

    <span class="simpara">
      Custom property for ignoring SSL cert verification errors
    </span>
   </dd>

  
 </dl>

 <dl>
  <strong class="title">Filesystem constants</strong>
  
   <dt id="constant.svn-fs-config-fs-type">
    <strong><code>SVN_FS_CONFIG_FS_TYPE</code></strong> 
    (<span class="type">string</span>)
   </dt>

   <dd>

    <span class="simpara">
     Configuration key that determines filesystem type
    </span>
   </dd>

  
  
   <dt id="constant.svn-fs-type-bdb">
    <strong><code>SVN_FS_TYPE_BDB</code></strong> 
    (<span class="type">string</span>)
   </dt>

   <dd>

    <span class="simpara">
     Filesystem is Berkeley-DB implementation
    </span>
   </dd>

  
  
   <dt id="constant.svn-fs-type-fsfs">
    <strong><code>SVN_FS_TYPE_FSFS</code></strong> 
    (<span class="type">string</span>)
   </dt>

   <dd>

    <span class="simpara">
     Filesystem is native-filesystem implementation
    </span>
   </dd>

  
 </dl>

 <dl>
  <strong class="title">Reserved property constants</strong>
  
   <dt id="constant.svn-prop-revision-date">
    <strong><code>SVN_PROP_REVISION_DATE</code></strong> 
    (<span class="type">string</span>)
   </dt>

   <dd>

    <span class="simpara">
     svn:date
    </span>
   </dd>

  
  
   <dt id="constant.svn-prop-revision-orig-date">
    <strong><code>SVN_PROP_REVISION_ORIG_DATE</code></strong> 
    (<span class="type">string</span>)
   </dt>

   <dd>

    <span class="simpara">
     svn:original-date
    </span>
   </dd>

  
  
   <dt id="constant.svn-prop-revision-author">
    <strong><code>SVN_PROP_REVISION_AUTHOR</code></strong> 
    (<span class="type">string</span>)
   </dt>

   <dd>

    <span class="simpara">
     svn:author
    </span>
   </dd>

  
  
   <dt id="constant.svn-prop-revision-log">
    <strong><code>SVN_PROP_REVISION_LOG</code></strong> 
    (<span class="type">string</span>)
   </dt>

   <dd>

    <span class="simpara">
     svn:log
    </span>
   </dd>

  
 </dl>

 <dl id="svn.constants.status">
  <strong class="title">Working copy status constants</strong>
  
   <dt id="constant.svn-wc-status-none">
    <strong><code>SVN_WC_STATUS_NONE</code></strong> 
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Status does not exist
    </span>
   </dd>

  
  
   <dt id="constant.svn-wc-status-unversioned">
    <strong><code>SVN_WC_STATUS_UNVERSIONED</code></strong> 
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Item is not versioned in working copy
    </span>
   </dd>

  
  
   <dt id="constant.svn-wc-status-normal">
    <strong><code>SVN_WC_STATUS_NORMAL</code></strong> 
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Item exists, nothing else is happening
    </span>
   </dd>

  
  
   <dt id="constant.svn-wc-status-added">
    <strong><code>SVN_WC_STATUS_ADDED</code></strong> 
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Item is scheduled for addition
    </span>
   </dd>

  
  
   <dt id="constant.svn-wc-status-missing">
    <strong><code>SVN_WC_STATUS_MISSING</code></strong> 
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Item is versioned but missing from the working copy
    </span>
   </dd>

  
  
   <dt id="constant.svn-wc-status-deleted">
    <strong><code>SVN_WC_STATUS_DELETED</code></strong> 
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Item is scheduled for deletion
    </span>
   </dd>

  
  
   <dt id="constant.svn-wc-status-replaced">
    <strong><code>SVN_WC_STATUS_REPLACED</code></strong> 
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Item was deleted and then re-added
    </span>
   </dd>

  
  
   <dt id="constant.svn-wc-status-modified">
    <strong><code>SVN_WC_STATUS_MODIFIED</code></strong> 
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Item (text or properties) was modified
    </span>
   </dd>

  
  
   <dt id="constant.svn-wc-status-merged">
    <strong><code>SVN_WC_STATUS_MERGED</code></strong> 
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Item&#039;s local modifications were merged with repository modifications
    </span>
   </dd>

  
  
   <dt id="constant.svn-wc-status-conflicted">
    <strong><code>SVN_WC_STATUS_CONFLICTED</code></strong> 
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Item&#039;s local modifications conflicted with repository modifications
    </span>
   </dd>

  
  
   <dt id="constant.svn-wc-status-ignored">
    <strong><code>SVN_WC_STATUS_IGNORED</code></strong> 
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Item is unversioned but configured to be ignored
    </span>
   </dd>

  
  
   <dt id="constant.svn-wc-status-obstructed">
    <strong><code>SVN_WC_STATUS_OBSTRUCTED</code></strong> 
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Unversioned item is in the way of a versioned resource
    </span>
   </dd>

  
  
   <dt id="constant.svn-wc-status-external">
    <strong><code>SVN_WC_STATUS_EXTERNAL</code></strong> 
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Unversioned path that is populated using svn:externals
    </span>
   </dd>

  
  
   <dt id="constant.svn-wc-status-incomplete">
    <strong><code>SVN_WC_STATUS_INCOMPLETE</code></strong> 
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Directory does not contain complete entries list
    </span>
   </dd>

  
 </dl>

 <dl id="svn.constants.type">
  <strong class="title">Node type constants</strong>
  
   <dt id="constant.svn-node-none">
    <strong><code>SVN_NODE_NONE</code></strong> 
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Absent
    </span>
   </dd>

  
  
   <dt id="constant.svn-node-file">
    <strong><code>SVN_NODE_FILE</code></strong> 
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     File
    </span>
   </dd>

  
  
   <dt id="constant.svn-node-dir">
    <strong><code>SVN_NODE_DIR</code></strong> 
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Directory
    </span>
   </dd>

  
  
   <dt id="constant.svn-node-unknown">
    <strong><code>SVN_NODE_UNKNOWN</code></strong> 
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Something Subversion cannot identify
    </span>
   </dd>

  
 </dl>

</div>
</div></div></body></html>